package com.gm.hardwarelib.pin;

/**
 * Created by Mouse on 2017/8/19.
 */

public enum NanopcT3LVDS {

    VCC3P3_SYS_1(1, "VCC3P3_SYS"),

    VCC3P3_SYS_2(2, "VCC3P3_SYS"),

    GPIOC16(3, "GPIOC16"),

    GPIOB18(4, "GPIOB18"),

    DGND_1(5, "DGND"),

    DGND_2(6, "DGND"),

    LVDS_DM0(7, "LVDS_D0-"),

    LVDS_DP0(8, "LVDS_D0+"),

    LVDS_DM1(9, "LVDS_D1-"),

    LVDS_DP1(10, "LVDS_D1+"),

    LVDS_DM2(11, "LVDS_D2-"),

    LVDS_DP2(12, "LVDS_D2+"),

    DGND_3(13, "DGND"),

    DGND_4(14, "DGND"),

    LVDS_CLKM(15, "LVDS_CLK-"),

    LVDS_CLKP(16, "LVDS_CLK+"),

    LVDS_DM3(17, "LVDS_D3-"),

    LVDS_DP3(18, "LVDS_D3+"),

    I2C2_SCL(19, "I2C2_SCL"),

    I2C2_SDA(20, "I2C2_SDA");


    private int num;
    private String name;

    NanopcT3LVDS(int num, String name) {
        this.num = num;
        this.name = name;
    }

    public static NanopcT3LVDS valueOf(int num) {
        for (NanopcT3LVDS v : NanopcT3LVDS.values()) {
            if (v.num == num) {
                return v;
            }
        }
        throw new IllegalArgumentException();
    }

    public int getNum() {
        return num;
    }

    public String getName() {
        return name;
    }
}
